Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reply with PUBACK when receiving a QoS1 PUBLISH #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RohithS98
Copy link

@RohithS98 RohithS98 commented Jun 6, 2018

Client automatically replies with PUBACK when receiving a PUBLISH of QoS 1 while waiting for another message
#30 - Bug fix

Client automatically replies with PUBACK when receiving a PUBLISH of QoS 1 while waiting for another message
if(type == packet[1]){
return packet;
}
mqtt_sn_send_puback(sock,(publish_packet_t *)packet,rc);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puback is sent in

mqtt_sn_send_puback(sock, packet, MQTT_SN_ACCEPTED);

I am trying to remember why mqtt_sn_print_publish_packet() is inside mqtt_sn_wait_for()

But I guess that is the same reason why you are missing some PUBACKs.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, it was because of issue #4

Base automatically changed from master to main January 18, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants